]> dgit.raspbian.org Git - gnome-shell.git/commit
st/texture-cache: Add missing error reporting
authorJonas Ådahl <jadahl@gmail.com>
Mon, 23 Mar 2026 12:26:51 +0000 (13:26 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 31 Mar 2026 07:39:16 +0000 (07:39 +0000)
commit6fa7fb4d9f39071f12a6e7cc8bb88ea47abece89
treea39b16d050a7304c05dfc5b5c59a7c06d971fffc
parent0299c09fd0f822a9d41f62b185e12b1f6caa87e6
st/texture-cache: Add missing error reporting

st_texture_cache_load_file_sync_to_cogl_texture() loads a file into a
texture, but if pixbuf_to_st_content_image() failed, it'd return that it
failed, but wouldn't set an error, which would cause a null pointer
dereference when attempting to log the error message in the caller. Fix
this by setting an error on all error paths.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9130
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4150>
src/st/st-texture-cache.c